package cn.iocoder.yudao.module.erp.controller.admin.business.sequence.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 单据编号新增/修改 Request VO")
@Data
public class SequenceSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18485")
    private Integer id;

    @Schema(description = "前置名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "前置名称不能为空")
    private String seqName;

    @Schema(description = "主体", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "主体不能为空")
    private String seqPartition;

    @Schema(description = "下一个值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "下一个值不能为空")
    private Long seqNextValue;

}